<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/page/common/head.jsp"%>
        <div class="right">
            <div class="location">
                <strong>你现在所在的位置是:</strong>
                <span>角色管理页面</span>
            </div>
            <div class="search">
           		<a href="${pageContext.request.contextPath}/SysRoleToAdd" >添加角色</a>
            </div>
            <table class="supplierTable" cellpadding="0" cellspacing="0">
                <tr class="firstTr">
                    <th width="10%">角色编码</th>
                    <th width="20%">角色名称</th>
                    <th width="10%">创建时间</th>
                    <th width="30%">操作</th>
                </tr>
                   <c:forEach var="role" items="${pageInfo.list}" varStatus="status">
					<tr>
						<td>
						<span>${role.code }</span>
						</td>
						<td>
						<span>${role.name}</span>
						</td>
						<td>
						<span><fmt:formatDate value="${role.createTime}" pattern="yyyy-MM-dd"/></span>
						</td>
						<td>
						<span><a class="modifyRole" href="${pageContext.request.contextPath}/SysRoleUpdate/${role.id}" roleid=${role.id } rolename=${role.name }><img src="${pageContext.request.contextPath }/statics/images/xiugai.png" alt="修改" title="修改"/></a></span>
						<span><a class="deleteRole" onclick="deleteById('/SysRoleDelete/',${role.id})" roleid=${role.id } rolename=${role.name }><img src="${pageContext.request.contextPath }/statics/images/schu.png" alt="删除" title="删除"/></a></span>
						</td>
					</tr>
				</c:forEach>
			</table>
            <div class="page-bar">
                <ul class="page-num-ul clearfix">
                    <li>共${pageInfo.total}条记录&nbsp;&nbsp; ${pageInfo.pageNum}/${pageInfo.pages}页&nbsp;&nbsp;&nbsp;&nbsp;</li>
                    <c:if test="${!pageInfo.isFirstPage}">
                        <a href="${pageContext.request.contextPath}/togetroleAll/list?pageIndex=1&queryRealName=${queryRealName}&queryRoleId=${queryRoleId}">首页</a>
                        <a href="${pageContext.request.contextPath}/togetroleAll/list?pageIndex=${pageInfo.pageNum-1}&queryRealName=${queryRealName}&queryRoleId=${queryRoleId}">上一页</a>
                    </c:if>
                    <c:if test="${!pageInfo.isLastPage}">
                        <a href="${pageContext.request.contextPath}/togetroleAll/list?pageIndex=${pageInfo.pageNum+1}&queryRealName=${queryRealName}&queryRoleId=${queryRoleId}">下一页</a>
                        <a href="${pageContext.request.contextPath}/togetroleAll/list?pageIndex=${pageInfo.pages}&queryRealName=${queryRealName}&queryRoleId=${queryRoleId}">尾页</a>&nbsp;&nbsp;
                    </c:if>
                </ul>
                <span class="page-go-form"><label>跳转至</label>
	     <input type="text" name="inputPage" id="inputPage" class="page-key" />页
	     <button type="button" onclick="goindex('/togetroleAll/',${pageInfo.pages})" class="page-btn" >GO</button>
    </span>
            </div>
        </div>
    </section>

<!--点击删除按钮后弹出的页面-->


<%@include file="/WEB-INF/page/common/foot.jsp" %>


